package twoD.IsoPfem;

import inf.jlinalg.Vector2D;

public class StraightEdge extends Edge {

	public StraightEdge(Node n1, Node n2) {
		super(n1, n2);
	}

	@Override
	public double[] getPoint(double... x) {
		Vector2D p = getN1().getPosition();
		p = p.multiply(1 - x[0]);
		p = p.add(getN2().getPosition().multiply(x[0]));
		return p.toArray();
	}

}
